package com.design.movieticket.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.design.movieticket.dto.OrdersDto;
import com.design.movieticket.entity.MovieArrange;
import com.design.movieticket.entity.Orders;
import com.design.movieticket.entity.Seat;

import java.math.BigDecimal;
import java.util.List;

public interface OrdersService {
    /** 订单信息分页查询 */
    public LambdaQueryWrapper buildQuery(Orders orders);

    /** 分页相关 */
    public <E extends IPage<Orders>> E page(E page, Wrapper<Orders> queryWrapper);

    /** 新增或更新订单数据 */
    public void addOrUpdateOrderInfo(Orders orders);

    /** 获取订单信息详情 */
    public Orders getOrderDetail(long id);

    /** 删除订单信息 */
    public void delOrderById(long id);


    /** 微信提交订单 */
    String wxCheckOrderS(Orders orders,Long userCouponId);

    /** 微信根据用户名获取现有电影票 */
    List<OrdersDto> wxGetOrdersByUsername(String username);

    /** 微信根据用户名获取已观看电影 */
    List<OrdersDto> wxGetHadBeenMovieByUsername(String username);
}
